/*
 * @Author: your name
 * @Date: 2020-08-28 10:52:07
 * @LastEditTime: 2020-08-28 10:58:55
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: /express/src/utils/util.ts
 */
export const getResponseData = (data: any, errMsg?: string): Result => {
  if (errMsg) {
    return {
      sucesss: false,
      errMsg,
      data
    };
  }
  return {
    sucesss: true,
    data
  };
};
